package com.by.controller;

import com.by.api.StockClient;
import com.by.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StockController implements StockClient {

    @Autowired
    StockService stockService;

    @Override
    public int updateStock(int goodsId, int num) {
        return stockService.updateStock(goodsId, num);
    }


}
